<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/system/include/taglibs.jsp" %>
<%
	Cookie[] cookies=request.getCookies();
		if(cookies!=null){
			for(int i=0;i<cookies.length;i++){
				if("loginUserName".equals(cookies[i].getName())){
				 request.setAttribute("username",java.net.URLDecoder.decode(cookies[i].getValue(), "GBK"));
				}				
			}
		}
 %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>海交会网上展馆后台管理系统</title>
<style type="text/css">
<!--
body{
	margin:0;
	padding:0;
	color:#000000;
	font-size:14px;
	font-family:sans, Arial, "宋体", sans-serif;
	line-height:24px;
	text-align:center;
	background-image: url();
}
.bak1 {
	background-image: url(${ctx}/images/dlback.jpg);
	background-repeat: no-repeat;
	background-position: center center;
}
input{
	padding-left:2px;
	height:20px;
	FONT-SIZE: 14px;
	background-image: url(${ctx}/images/bak.gif);
	background-repeat: repeat-x;
	border: 1px solid #4f8fcd;
-->
</style>
<script type="text/javascript">
function isEmptyString(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}

function isValidWord(str) {
    var regexp = new RegExp("^[a-zA-Z0-9_-]*$");
    if (regexp.test(str)) {
       return true;
    } else {
       return false;
   }
}
function check() {
   var loginUserName = document.getElementById("loginUserName");
   var password = document.getElementById("password");
   var validateCode = document.getElementById("validateCode");
   if (isEmptyString(loginUserName.value)) {
       alert("请输入用户名!");
       loginUserName.focus();
       return false;
   }
   if (isEmptyString(password.value)) {
      alert("请输入密码!");
      password.focus();
      return false;
   }
   return sysloginForm.submit();
}
</script>
</head>

<body>
<s:form action="/system/syslogin_syslogin.do" id="sysloginForm" onsubmit="check();return false;">
<div style="width:100%; height:60px;"></div>
<div class="bak1" style="width:630px; height:530px;">
<div style="padding-top:230px; text-indent:300px">用户名：<s:textfield cssClass="input_list" maxlength="32" size="14" name="loginUserName" value="%{#request.username}" cssStyle="width:120px;"/></div>
<div style="padding-top:20px;text-indent:300px">密&nbsp;&nbsp;&nbsp;&nbsp;码：<s:password label="密码" name="password" size="16" maxlength="32" cssClass="input_list" cssStyle="width:120px;"/></div>
<div style="margin-top:20px; text-indent:300px"><s:submit type="image" src="%{#application.ctx}/images/52design.com_134.gif" cssStyle="width:192px;height:58px;"/></div>
 </div>
 </s:form>
 <div style="width:100%; height:30px; color:#FFFFFF" >2010版权所有&copy;福州乾庄信息技术有限公司 </div>
</body>
</html>
